package com.gettec.lims.client.components;

import com.extjs.gxt.ui.client.Style.LayoutRegion;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Viewport;
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;

public class MainPanel extends ContentPanel   
{  
    public MainPanel()   
    {  
    	
        setHeading("委托登记单管理");  
        Viewport viewport = new Viewport();  
        TopPanel topPanel=new TopPanel();
        BorderLayoutData northData = new BorderLayoutData(LayoutRegion.NORTH,20);  
       // northData.setCollapsible(true);
        northData.setSplit(true);
       // BottomPanel bottomPanel=new BottomPanel();
        //BorderLayoutData bottomData = new BorderLayoutData(LayoutRegion.SOUTH);  
        //bottomData.setCollapsible(true);
       // bottomData.setSplit(true);
        viewport.add(topPanel,northData);
       // viewport.add(bottomPanel,bottomData);
       
		 
		BorderLayout b=new BorderLayout();
		viewport.setLayout(b);
		add(viewport);
    }  
}  